package com.chuangyang.fixboxmaster.ui.widgets.timepick;

import android.content.Context;

import java.util.ArrayList;

/**
 * Created by Administrator on 2015/3/31.
 */
public class TextWheelAdapter extends  AbstractWheelTextAdapter {

    private ArrayList<String> mList;

    public TextWheelAdapter(Context context,ArrayList<String> list){
        super(context);
        mList = list;
    }

    @Override
    protected CharSequence getItemText(int index) {
        return mList != null? mList.get(index) : null;
    }

    @Override
    public int getItemsCount() {
        return mList != null? mList.size():0;
    }
}
